package com.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hewei
 * @Title: HelloController
 * @ProjectName idea-workspace
 * @Description: 提供hello服务
 * @date 2018/11/10 22:47
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String index(@RequestParam String name) {
        return "hello " + name + "，this is first messge";
    }

}
